{include file="public/head" /}
<!-- 顶部开始 -->
<div class="container">
    <div class="logo">
        <a href="./index.html">{:getConfig('site.site_name')}管理后台</a>
    </div>
    <ul class="layui-nav right" lay-filter="">
        <li class="layui-nav-item">
            <a href="javascript:;">{$username}</a>
            <dl class="layui-nav-child">
                <!-- 二级菜单 -->
                <dd>
                    <a onclick="">个人信息</a>
                </dd>
                <dd>
                    <a onclick="">切换帐号</a>
                </dd>
                <dd>
                    <a href="#" onclick="logout()">退出</a>
                </dd>
            </dl>
        </li>
        <!--<li class="layui-nav-item to-index">
            <a href="/">前台首页</a>
        </li>-->
        <li class="layui-nav-item">
            <a href="javascript:;">修改密码</a>
            <dl class="layui-nav-child">
                <dd>
                    <a onclick="xadmin.open('修改密码','../login/updatePwd',600,400)">修改密码</a>
                </dd>
            </dl>
        </li>
    </ul>
</div>
<!-- 顶部结束 -->
<!-- 中部开始 -->
<!-- 左侧菜单开始 -->
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            {volist name="data" id="v"}
            <li>
                <a {if condition="($v['nav_url'] neq '')"} onclick="xadmin.add_tab('{$v.nav}','{$v.nav_url}')" {/else} href="javascript:;" {/if}>
                    <i class="icon iconfont left-nav-li" lay-tips="{$v.nav}">
                        {if $v['id'] == 1}&#xe6db;{/if}
                        {if $v['id'] != 1}{$v['img']}{/if}
                    </i>
                    <cite>{$v.nav}</cite>
                    <i class="iconfont nav_right"></i>
                </a>
                {if condition="($v['wmenu'] neq '')"}
                    {volist name="v.wmenu" id="w"}
                    <ul class="sub-menu">
                        <li>
                            <a onclick="xadmin.add_tab('{$w.nav}','{$w.nav_url}')">
                                <i class="iconfont">&#xe6a7;</i>
                                <cite>{$w.nav}</cite></a>
                        </li>
                    </ul>
                    {/volist}
                {/if}
            </li>
            {/volist}
        </ul>
    </div>
</div>
<!-- 左侧菜单结束 -->
<!-- 右侧主体开始 -->
<div class="page-content">
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li class="home">
                <i class="layui-icon">&#xe68e;</i>我的桌面
            </li>
        </ul>
        <div class="layui-unselect layui-form-select layui-form-selected" id="tab_right">
            <dl>
                <dd data-type="this">关闭当前</dd>
                <dd data-type="other">关闭其它</dd>
                <dd data-type="all">关闭全部</dd>
            </dl>
        </div>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src='/Index/welcome' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
        </div>
        <div id="tab_show"></div>
    </div>
</div>
<div class="page-content-bg"></div>
<style id="theme_style"></style>
<script>
    function logout() {
        var id  = $(this).parent().attr('lay-id');
        xadmin.del_data(id);
        location.href="../Login/logout";
    }
</script>
<!-- 右侧主体结束 -->
{include file="public/footer" /}